package com.duam.serveradmin;

import static com.duam.serveradmin.Constants.HOST;
import static com.duam.serveradmin.Constants.USER;
import android.os.AsyncTask;
import android.util.Log;

public class ExecTask extends AsyncTask<String, Void, String> 
{

	@Override
	protected String doInBackground(String... params) 
	{
		String pid = null;
		
		try 
		{
			pid = new Exec(HOST, USER, new FIELUserInfo(), params[0]).perform();
		} 
		catch (Exception e) 
		{
			pid = "#ERR#: "+ e.getMessage();
			Log.e(getClass().getName(), "Error", e);
		}
		
		return pid;
	}
	
}
